package com.gopay.common.cps.dao.acct.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.acct.AcpsAcctTransDtlTmpDAO;
import com.gopay.common.domain.acps.AcpsAcctTransDtlTmp;


/**
 * 账务明细临时表
 * 
 * @AcpsAcctTransDtlTmpDAOImpl.java
 * @author lizheng
 * @2014-3-13 下午4:51:46 www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("acpsAcctTransDtlTmpDAO")
public class AcpsAcctTransDtlTmpDAOImpl extends BaseDAOImpl<AcpsAcctTransDtlTmp, String> implements
        AcpsAcctTransDtlTmpDAO {
    @Override
    public List<AcpsAcctTransDtlTmp> getDtlTmpByGopayOrderId(String gopayOrderId) {
        DetachedCriteria detachedCriteria = DetachedCriteria.forClass(AcpsAcctTransDtlTmp.class);
        detachedCriteria.add(Restrictions.eq("gopayOrderId", gopayOrderId));
        return findByCriteria(detachedCriteria);
    }
}
